package com.schedualnew.mq.dto.exam.schedule;

import lombok.Getter;

import java.io.Serializable;

@Getter
public class QueryScheduledApplyDto implements Serializable {
    private String sickId;
    private String startDateTime;
    private String endDateTime;


    private String startDate;
    private String startTime;
    private String endDate;
    private String endTime;


    public void setSickId(String sickId) {
        this.sickId = sickId;
    }

    public void setStartDateTime(String startDateTime) {
        this.startDateTime = startDateTime;
        this.startDate = startDateTime.split(" ")[0];
        this.startTime = startDateTime.split(" ")[1];
    }

    public void setEndDateTime(String endDateTime) {
        this.endDateTime = endDateTime;

        this.endDate = endDateTime.split(" ")[0];
        this.endTime = endDateTime.split(" ")[1];
    }

//    public String getStartDate() {
//        return startDateTime.split("")[0];
//    }
//
//    public String getStartTime() {
//        return startDateTime.split("")[1];
//    }
//
//    public String getEndDate() {
//        return endDateTime.split("")[0];
//    }
//
//    public String getEndTime() {
//        return endDateTime.split("")[1];
//    }


}
